import axios from '@/utils/index';

class basic {

    static async getId(id) {
      const res = axios.get(`/basic/${id}`)
      return res;
    }

    static async getDetail() {
      const res = axios.get('/basic')
      return res
    }

    static async addData({data}) {
      const res = axios.post('/basic',
        data
        )
      return res
    }


    static async deleteData(id){
      const res = axios.delete(`/basic/${id}`)
      return res
    }

    static async updata({data}) {
      const res = axios.put('/basic',
        data
        )
      return res
    }
  }

  export default basic
